package com.bianpai.exception;

/**
 * 流程执行异常
 */
public class FlowExecutionException extends RuntimeException {
    private String flowId;
    private String flowInstanceId;
    private String nodeId;
    
    public FlowExecutionException(String message) {
        super(message);
    }
    
    public FlowExecutionException(String message, Throwable cause) {
        super(message, cause);
    }
    
    public FlowExecutionException(String message, String flowId, String flowInstanceId) {
        super(message);
        this.flowId = flowId;
        this.flowInstanceId = flowInstanceId;
    }
    
    public FlowExecutionException(String message, String flowId, String flowInstanceId, String nodeId) {
        super(message);
        this.flowId = flowId;
        this.flowInstanceId = flowInstanceId;
        this.nodeId = nodeId;
    }
    
    public FlowExecutionException(String message, Throwable cause, String flowId, String flowInstanceId, String nodeId) {
        super(message, cause);
        this.flowId = flowId;
        this.flowInstanceId = flowInstanceId;
        this.nodeId = nodeId;
    }
    
    public String getFlowId() {
        return flowId;
    }
    
    public String getFlowInstanceId() {
        return flowInstanceId;
    }
    
    public String getNodeId() {
        return nodeId;
    }
}